import { SystemDictionaryTree, SystemDictionaryQuery, SystemDictionaryDelete } from '@/services/api'
import { request, METHOD } from '@/utils/request'

/**
 * 树
 */
export function tree() {
    return request(SystemDictionaryTree, METHOD.GET, {})
}

/**
 * 列表
 */
export function query(param) {
    return request(SystemDictionaryQuery, METHOD.POST, param)
}

/**
 * 删除
 */
export async function del(param) {
    return request(SystemDictionaryDelete, METHOD.POST, param)
}

export default {
    tree,
    query,
    del
}